#物品使用消耗
#id : CUSTOM物品ID
execute if entity @s[gamemode=creative] run return fail
$execute if items entity @s weapon.mainhand *[custom_data~{id:"$(id)"}] run return run item modify entity @s weapon.mainhand main:consume
item modify entity @s weapon.offhand util:consume